package SubServer;

import java.io.Serializable;
import java.rmi.RemoteException;
import java.util.Calendar;

import General.QuoteInterface;


public class Quote implements QuoteInterface, Serializable {
	
	private static final long serialVersionUID = 1L;
	private double fPrice;
	private String fCurrency;
	private long fTimeStamp;
	
	public Quote(int price, String currency) throws RemoteException {
		fPrice = price;
		fCurrency = currency;
		fTimeStamp = Calendar.getInstance().getTimeInMillis();
	}

	public double getPrice() throws RemoteException {
		return fPrice;
	}

	public String getCurrency() throws RemoteException {
		return fCurrency;
	}

	public long getfTimeStamp() {
		return fTimeStamp;
	}
}
